package com.lhm.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class OrderController {
    @Value("${server.port}")
    private String port;

    @Value("${spring.profiles.active}")
    private String active;

    @RequestMapping("/info")
    public String info(){
        return "hello orderinfo:"+port + " active: " + active;
    }

}
